package com.hotec.PROJECT_NAME.component.basic;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gemcap.framework.data.entity.SoftDelEntity;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author
 */
public class BaseEntity extends SoftDelEntity<String> implements Serializable {

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @Transient
    private String ids;
    /**
     * 排序
     */
    @Transient

    private String orderBy;

//
//    @Transient
//    @Join(fk = "create_by")
//    private SysAccount createUser;
//
//
//    @Transient
//    @Join(fk="update_by")
//    private SysAccount updateUser;


    public String getIds() {
        return ids;
    }

    public BaseEntity setIds(String ids) {
        this.ids = ids;
        return this;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public BaseEntity setOrderBy(String orderBy) {
        this.orderBy = orderBy;
        return this;
    }

//    public SysAccount getCreateUser() {
//        return createUser;
//    }
//
//    @JsonIgnore
//    public BaseEntity setCreateUser(SysAccount createUser) {
//        this.createUser = createUser;
//        return this;
//    }
//
//    public SysAccount getUpdateUser() {
//        return updateUser;
//    }
//
//    @JsonIgnore
//    public BaseEntity setUpdateUser(SysAccount updateUser) {
//        this.updateUser = updateUser;
//        return this;
//    }

}
